/*
 * @Author: TJN tjn@246@126.com
 * @Date: 2024-07-15 14:01:44
 * @LastEditors: TJN tjn@246@126.com
 * @LastEditTime: 2024-07-15 14:25:28
 * @FilePath: \router\src\main.ts
 * @Description:
 *
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
 */
import { createApp } from "vue";
// import './style.css'
import App from "./App.vue";
import router, { setupRouter } from "./router/index.ts";
import { setupPlugins } from "./plugins/index.ts";
import "./style/icon/iconfont.css";
import setupElementPlus from './plugins/elementplus/index.ts'
import setupPinia from './plugins/pinia/index.ts'
async function bootsrap() {
  let app = createApp(App);

  // 设置element plus
  setupElementPlus(app)

  // 设置pinia
  setupPinia(app)

  // 设置路由
  setupRouter(app);

  //设置插件
  setupPlugins(app);

  // 当路由全部处理好之后在挂载app组件
  await router.isReady();
  app.mount("#app");
}
bootsrap();
